package com.starbaba.core.utils.io;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * IOUtil 父类
 *
 * @Copyright: Copyright (c) 2006
 * @Company: Revenco Tech Ltd.
 * @anthor chenminhui<chenminhui@revenco.com>
 * @since 2011-12-31 上午09:46:01
 * @version V1.0
 */
public abstract class BaseIOUtil {
	
	/**
	 * 打开目标输入文件流
	 * @param urlSavePath 目标目录
	 * @param filename 目标文件
	 * @return OutputStream 输入文件流
	 * @throws Exception
	 *
	 * @Copyright: Copyright (c) 2006
	 * @Company: Revenco Tech Ltd.
	 * @anthor chenminhui<chenminhui@revenco.com>
	 * @since 2011-12-31 上午09:49:51
	 * @version V1.0
	 */
	public abstract OutputStream openOutputStream(String urlSavePath, String filename) throws Exception;
	
	/**
	 * 打开目标文件输出流
	 * @param urlFilePath 目标文件
	 * @return InputStream 输出流
	 * @throws IOException
	 *
	 * @Copyright: Copyright (c) 2006
	 * @Company: Revenco Tech Ltd.
	 * @anthor chenminhui<chenminhui@revenco.com>
	 * @since 2011-12-31 上午09:49:53
	 * @version V1.0
	 */
	public abstract InputStream openInputStream(String urlFilePath) throws IOException;
}
